<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>部门管理-列表</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/common.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/dialog.css"/>
<style type="text/css">
.limit {
	color: #F00;
}
</style>
</head>
<body>
<h2 class="tableTitle">通知公告</h2>
<table class="listTable cssrain">
  <thead>
  <tr>
  <th colspan="3">
    <input type="button" id="new" value="新增"/>
    <input type="button" id="del" value="删除" disabled="disabled"/>
  </th>
  <th colspan="3">
    <input id="inputTipZ" style="color:#999999" size="38" value="查询：标题、作者、时间"/>
    <input type="button" id="query" value="查询"/><input type="button" id="query" value="高级查询"/>
  </th>
  </tr>
  <tr>
    <th width="15"><input type="checkbox" name="checkbox" id="checkboxAll" />
    <label for="checkbox"></label></th>
    <th  width="30">序号</th>
    <th>标题</th>
    <th>作者</th>
    <th>发文时间</th>
    <th>操作</th>
  </tr>
  </thead> 
  <tbody>
  <tr>
    <td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
    <td>1</td>
    <td><a class="view">土地节约集约利用 促进海珠科学发展</a></td>
    <td>广州市国土资源和房屋管理局海珠分局</td>
    <td >2012-06-04</td>
    <td ><a class="edit">编辑</a></td>
  </tr>
  <tr>
    <td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
    <td>2</td>
    <td><a class="view">韶关市浈江区2012年公开招聘中小学教师公告</a></td>
    <td>李龙</td>
    <td >2012-06-12</td>
    <td ><a class="edit">编辑</a></td>
  </tr>
  <tr>
    <td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
    <td>3</td>
    <td><a class="view">2012年韶关市中考加分政策考生名单公示</a></td>
    <td>李龙</td>
    <td >2012-06-10</td>
    <td ><a class="edit">编辑</a></td>
  </tr>
  <tr>
    <td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
    <td>4</td>
    <td><a class="view">广东北江中学2012年艺体特长生招生办法</a></td>
    <td>李龙</td>
    <td >2012-06-09</td>
    <td ><a class="edit">编辑</a></td>
  </tr>
  <tr>
    <td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
    <td>5</td>
    <td><a class="view">关于2011—2012学年度韶关市中学“三好学生”、优秀学生干部名单公示</a></td>
    <td>李龙</td>
    <td >2012-06-05</td>
    <td ><a class="edit">编辑</a></td>
  </tr>
  <tr>
    <td> </td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td> </td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td> </td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  </tbody>
</table>
<!-------------------- 分页-------------------->
<div class="pages">
	<div class="pagesL">&nbsp;&nbsp;&nbsp;&nbsp;共<strong> 180</strong> 条记录&nbsp;&nbsp;<strong> 15</strong> 条/页，当前第<strong> 1</strong> 页</div>
	<div class="pagesC">◀◀上一页&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;2&nbsp;3&nbsp;4&nbsp;5&nbsp;...&nbsp;10&nbsp;&nbsp;&nbsp;&nbsp;下一页▶▶</div>
	<div class="pagesR">转到&nbsp; <input type="text" style="width:25px; height:12px; font-size:12px; border:solid 1px #7aaebd;"/>&nbsp;&nbsp;页&nbsp;&nbsp;&nbsp;</div>
	</div>

<script type="text/javascript" src="<%=basePath %>admin/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/js/simpleui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/js/table-chexkbox.js"></script>
<script type="text/javascript">
	$('.cssrain tbody').delegate("tr", "click", function() {
		if ($('.cssrain input[type="checkbox"]:checked').length > 0) {
			$("#del").removeAttr("disabled");
		} else {
			$("#del").attr("disabled", "disabled");
		}
	});

	$("#new").click(function() {
		$().simpleDialog({
			ajax:true,
			ajaxUrl:	"<%=basePath%>admin/announceAdd.jsp",
			title:	'发布公告',
			buttons:{'取消':function(){closeDialog();},'保存':function(){closeDialog();sucTip();}}
		});
	});
	
	$(".edit").click(function() {
		$().simpleDialog({
			ajax:true,
			ajaxUrl:	"<%=basePath%>admin/announceEdit.jsp",
			title:	'编辑公告',
			buttons:{'取消':function(){closeDialog();},'保存':function(){closeDialog();sucTip();}}
		});
	});

	$(".view").click(function (evt) {
		var prid = $(this).parents("tr").find('input.recSelect').val();

		$().simpleDialog({
			ajax:true,
			ajaxUrl:	"<%=basePath%>admin/announceView.jsp",
			title:	'查看公告',
			buttons:{'取消':function(){closeDialog();}}
		});
	});

	var clear = true;
	$("#inputTipZ").focus(function() {
		if (clear) {
			$(this).val("");
			clear = false;
		}
	});

	$("#query").click(function() {
		window.location = "<%=basePath%>admin/announceResList.jsp";
	});
</script>
</body>
</html>
